<include file="../Public/agent.header.html" />
<link href="__PUBLIC__/Css/public.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/reglogin.css" rel="stylesheet" type="text/css" />
<script>

</script>

<!--表单验证-->
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validator.reg.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.corners.min.js"></script>
<link href="__PUBLIC__/Js/form_check/type.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Js/register.js" ></script>

	
	
<div id="mainWrapper">
	
 

<div id="main">
  
  <div style="width: auto; height: auto;margin:40px 0px;" class="do_box">
  	<dl class="do_top">
    	<dt><img height="24" src="__PUBLIC__/Images/agent/reg_title.jpg"></dt>
        <dd>您提供的所有信息，绝不会被公开或用作其他用途，请放心填写。</dd>
        <div class="clear"></div>
    </dl>
    
    <form action="{:U('agent://Public/doRegister')}" method="post" id="regform" name="reg">
    <php>if(!empty($invite)) {</php>
      <input type="hidden" name="invitecode" value="{$invite}">
    <php>}</php>
    
    <table cellspacing="0" cellpadding="0" border="0" align="center" width="900" class="do_list">
      <tbody><tr>
        <td height="50" align="right" width="90" valign="middle"><span class="reg_item">Email:</span></td>
        <td width="325" valign="middle">
        <div class="mailline">
            <input type="text" class="do_input uemail b_input" value="" 
            name="email" require="true" datatype="email|ajax" 
            url="{:U('agent://Public/isEmailAvailable')}" msg="格式错误|邮箱已注册"/>
        </div>
        </td>
        <td align="left" width="145" valign="middle">
        	<div id="success_email" style="display:none;"> <span class="ico_cue_ok"></span> </div>
          <div class="error_email" style="position: relative;display:none;"> <span class="ico_cue_no"></span><span id="error_email"></span> </div>
	
        </td>
        <td width="300" valign="top" rowspan="5">        
        <ul class="side_zone">
        <li>已有{$ts['site']['site_name']}联盟会员账号？</li>
        <li><a href="{:U('agent://Public/login')}" class="sidebtn" tabindex='-1'>联盟会员登录</a></li>
        <li><a href="{:U('Index://Public/login')}" class="sidebtn" tabindex='-1'>用户登录</a></li>
		<li><a href="{:U('Index://Public/register')}" class="sidebtn" tabindex='-1'>注册用户</a></li> 
        </ul>
        </td>
      </tr>
      <tr>
        <td height="50" align="right" valign="middle"><span class="reg_item">昵称:</span></td>
        <td valign="middle">
        	<input type="text" class="do_input uemail b_input" value="" 
        		name="uname" id="uname" require="true" datatype="require|ajax" max="12"
        		url="{:U('agent://Public/isValidNickName')}" msg="输入昵称|昵称已占用"/>
        </td>
        <td align="left" valign="middle">
        	<div id="success_uname" style="display:none;"> <span class="ico_cue_ok"></span> </div>
          <div class="error_uname" style="position: relative;display:none;"> 
          	<span class="ico_cue_no"></span><span id="error_uname"></span> </div>
				</td>
      </tr>
      <tr>
        <td height="50" align="right" valign="middle"><span class="reg_item">密码:</span></td>
        <td valign="middle">
        	<input type="password" class="do_input psd_input b_input" 
        					name="password" id="password" require="true" value="" 
        					datatype="limit"  min="6" max="16" msg="6-16个字符"/>       
        </td>
        <td align="left" valign="middle">
        	<div id="success_password"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
          <div class="error_password" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_password"></span> </div>
        </td>
      </tr>
      <tr>
        <td height="50" align="right" valign="middle"><span class="reg_item">确认密码:</span></td>
        <td valign="middle">
        	<input type="password" class="do_input psd_input b_input" 
        					name="repassword" require="true" value="" datatype="repeat|limit"  
        					min="6" max="16" to="password" msg="确认密码错误|请再输入一次"/>  
        </td>
        <td align="left" valign="middle">
        	<div id="success_repassword"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
					<div class="r error_repassword" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_repassword"></span> </div>
        </td>
      </tr>
            <tr>
        <td height="50" align="right" valign="middle"><span class="reg_item">验证码:</span></td>
        <td valign="middle">
       		<span class="yzm_box">
       			<input type="text" class="do_input b_input yzm_input" 
        		name="verify" require="true" value="" datatype="require"  
        		msg="输入验证码|验证码错误"/>
       		</span>
       		<img onclick="changeverify()" 
       		style="cursor: pointer;vertical-align: middle;" id="verifyimg" alt="看不清？请点击！" 
       		src="{:U('Index://Public/verify')}">
       		<a class="forget" href="javascript:void(0);" onclick="changeverify()" 
       			style="cursor: pointer;">看不清？换一张</a>
        </td>
        <td align="left" valign="middle">
        	<div id="success_verify"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
       		<div class="r error_verify" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_verify"></span> </div>
        </td>
      </tr>
            <tr>
        <td height="25" align="right" valign="middle">&nbsp;</td>
        <td valign="middle"><input type="checkbox" checked="true" require="true" datatype="group" min="1" max="1" class="autologin" id="agreement" name="agreement" msg="请确认已阅读">
           <b><label for="agreement">已阅读并接受</label></b>
           <a href="{:U('agent://Index/agreement',array('sortcode'=>'doc_a_agentagreement'))}" target="_blank" style="margin-left: 0pt;" class="forget">《{$ts['site']['site_name']}网站联盟服务协议书》</a></td>
        <td align="left" valign="middle">
        	<div id="success_agreement"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
       		<div class="r error_agreement" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_agreement"></span> </div>
        </td>
      </tr>
      <tr>
        <td height="56" align="right" valign="middle">&nbsp;</td>
        <td valign="middle" colspan="3">
        	<input type="submit"  class="reglogin_btn" value="注&nbsp;册" name="input2"></td>
      </tr>
    </tbody></table>
    
    </form><br><br>
  </div>
  
    <div class="clear"></div>

</div>
	</div> 
<include file="../Public/footer.html" />